/*
 * Project: BoboDesignPattern
 * 
 * File Created at 2019年2月18日
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package obsver.javaOwn;

import java.util.Observable;
import java.util.Observer;

/**
 * @Type ObserverA
 * @Desc
 * @author 52489
 * @date 2019年2月18日
 * @Version V1.0
 */
public class ObserverA implements Observer {

    private int myState;

    /*
     * (non-Javadoc)
     * 
     * @see java.util.Observer#update(java.util.Observable, java.lang.Object)
     */
    @Override
    public void update(Observable o, Object arg) {
        myState = (int) arg;
    }

    public int getMyState() {
        return myState;
    }

    public void setMyState(int myState) {
        this.myState = myState;
    }

}
